<ion-view view-title="连接设备">
    <div class="bar bar-header bar-positive">
        <!--<button class="button button-clear" ui-sref="app.MyLink({fromlinking: true})" nav-direction="back">-->
        <button class="button button-clear" ui-sref="app.MyLink" nav-direction="back">
            <i class="icon ion-ios-arrow-back"></i>
        </button>
        <div class="title">连接设备</div>
        <button class="button button-clear"></button>
    </div>
	<ion-content overflow-scroll="false" has-bouncing="true" class="MyLinking">
		<div class="image_bluetooth">
			<img src="img/icons/bluetooth.svg" />
		</div>
		<p class="Seek Greenfont-19">找到以下设备</p>
		<p class="Looked Grayfont-15">在下列设备中，选择并连接您的设备</p>

		<ul class="list_device">
			<li class="DeviceList LineHeight Grayline-top Grayline-tottom" ng-repeat="(k, v) in devices">
                <div ng-click="connectBth(k, v)">
                    <i class="DeviceName Defaultfont-15">{{v.name.length > 1 ? v.name : v.address}}</i>
                    <i class="State Grayfont-15">未连接</i>
                    <div style="clear: both;"></div>
                </div>
			</li>
			<!--<li class="DeviceList LineHeight Grayline-tottom">
				<i class="DeviceName Defaultfont-15">BGB002</i>
				<i class="State Grayfont-15">未连接</i>
				<div style="clear: both;"></div>
			</li>
			<li class="DeviceList LineHeight Grayline-tottom" ng-controller="LoadingCtrl">
				<i class="DeviceName Defaultfont-15">BGB003</i>
				<i class="State Grayfont-15"><ion-spinner class="spinner spinner-balanced" icon="ios-small"></ion-spinner></i>
				<div style="clear: both;"></div>
			</li>-->
		</ul>
	</ion-content>
</ion-view>
